package com.atguigu.spzx.model.entity.order;

import com.atguigu.spzx.model.entity.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderItem extends BaseEntity {
    //jackson提供的注解，将orderId字段的值转为字符串给前端，非数值型的数据前端不会四舍五入
    @JsonSerialize(using = ToStringSerializer.class)
     private Long  orderId;
    private Long skuId;
    private String skuName;
    private String thumbImg;
    private BigDecimal skuPrice;
    private Integer skuNum;
}
